'use strict'
const path = require('path')
function resolve(dir){
  return path.join(__dirname, dir)
}
const webpack = require("webpack")
module.exports = {
  publicPath: '/',
  outputDir: 'dist',
  assetsDir: 'static',
  devServer: {
    port: 8091,
    open: true,
    host: process.env.VUE_APP_HOST,
    https: false,
    disableHostCheck: true, // 防止 VUE3 Invalid Host header
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': resolve('src'),
      }
    },
    plugins: [
      new webpack.ProvidePlugin({
          $:"jquery",
          jQuery:"jquery",
          "windows.jQuery":"jquery"
      })
    ]
  },
  configureWebpack:config => {
    config.entry.app = ["@babel/polyfill","./src/main.js"]              
  },
  transpileDependencies: ["mine-ui1","mine-ui2"],
  lintOnSave: false
}
